package cn.stylefeng.guns.modular.myenum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author 李宝嘉
 * @Date 2022/1/5 12:15
 */
@Getter
public enum ReservedStatusEnum {
    PENDING(0, "待履约"), USE(1, "使用中"),
    CANCEL(2, "已取消"), BREACH(3, "违约"),
    WITHDRAW(4, "已退座");

    ReservedStatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    @JsonValue
    @EnumValue
    private final Integer code;

    private final String desc;
}
